<template>
  <section class="passenerData">
    <div class="flex passenerFont oneMarginDiv">
      <div>旅客姓名</div>
      <div>{{passenerInfo.paxName}}</div>
    </div>
    <div class="flex passenerFont twoMarginDiv">
      <div>证件号码</div>
      <div>{{passenerInfo.idNo}}</div>
    </div>
  </section>
</template>

<script>
export default {
  props: {
    passenerInfo: {
      type: Object
    }
  }
}
</script>

<style lang="scss" scoped>
@import '~assets/scss/public/public.scss';
@import '~assets/scss/public/var.scss';
@include flex(space-between, center);
.passenerData {
  background: $colorWhite;
  box-sizing: border-box;
  padding: .5rem;
  .passenerFont {
    font-size: $fontSize8;
    color: $colorBlack;
    font-family: PingFangSC-Regular;
    box-sizing: border-box;
  }
  .twoMarginDiv {
    margin-top: 1rem;
  }
  .oneMarginDiv {
    margin: .3rem 0;
  }
}
</style>
